package com.feisuanyz.repository;

import com.feisuanyz.entity.NotificationManagementDO;
import java.util.Optional;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * <p>
 *   通知管理表的持久化接口
 * </p>
 * @author 23265
 */
public interface NotificationManagementRepository extends JpaRepository<NotificationManagementDO, Integer> {

    @EntityGraph(attributePaths = {"createBy", "updateBy"})
    Optional<NotificationManagementDO> findById(Integer notificationId);
}